package com.example.Windturbine.Service;

import com.example.Windturbine.Error.BusinessException;
import com.example.Windturbine.Service.Model.UserModel;
import org.springframework.stereotype.Service;

import java.io.FileNotFoundException;

/**
 * @Author 丁永新
 * @Date 2021/12/11
 */

public interface UserService {
    //通过用户ID获取用户对象的方法
    UserModel getUserById(Integer id) throws BusinessException;

    void register(UserModel userModel) throws BusinessException, FileNotFoundException;

    //根据用户输入的信息去验证
    UserModel validateLogin(String TelOrEmail, String encrptPassword) throws BusinessException;

}
